GoogleBackgroundRemovalConfig

data class GoogleBackgroundRemovalConfig(val httpClient: OkHttpClient = OkHttpClient.Builder() .connectTimeout(15, TimeUnit.SECONDS) .readTimeout(120, TimeUnit.SECONDS) .writeTimeout(120, TimeUnit.SECONDS) .build()) : BackgroundRemovalConfig

Uses Google's on-device background segmentation implementation.

Constructors

Link copied to clipboard
constructor(httpClient: OkHttpClient = OkHttpClient.Builder() .connectTimeout(15, TimeUnit.SECONDS) .readTimeout(120, TimeUnit.SECONDS) .writeTimeout(120, TimeUnit.SECONDS) .build())

Properties

Link copied to clipboard
open override val httpClient: OkHttpClient

Makes network calls.

Link copied to clipboard
open override val remover: BackgroundRemover<*>

Google ML Kit remover configured by this instance.